package com.enniswu.weitter.moment.postlist;

import com.enniswu.weitter.base.BaseContract;
import com.enniswu.weitter.entity.Post;

import java.util.List;

public interface PostListContract {
    interface View<P extends Presenter> extends BaseContract.View<P> {
        void notifyDataSetChanged();
        void notifyDataInserted(int count);
        void notifyItemUserChanged(Post post);
        void addPosts(List<Post> posts);
        void clearPosts();
        void refresh();
        void finishLoadData();
    }

    interface Presenter extends BaseContract.Presenter {
        void start();
        void setOrientation(int orientation);
        void getPosts(int offset);
    }
}
